export default {
    state:{
        sesUser:null,
    },
     getters:{
       getSesUser(state){
           return state.sesUser;
       }
     }, 
     mutations:{
      setSesUser(state,user){
          state.sesUser=user;
      }
     },
     actions:{
        login({commit},user){
            commit("setSesUser",user);
        },
        logout({commmit}){
            commit("setSesUser",null);
        }
     }
 }